<?php
/*
 *   This file is part of poat.
 *
 *   poat is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   poat is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with poat.  If not, see <http://www.gnu.org/licenses/>.
 */
 
class status {

	var $statusid;
	
    public function __construct()
    {
    }

	// THIS CREATE A NEW INSTANCE OF THIS CLASS
	public function newInstance() {
		//$class = new ReflectionClass('status');	
		//return $class->newInstance();
		return new status;
	}

	// COMMON PUBLIC FUNCTIONS // NEEDED FOR LOADER
	public function get() {
		$sql = "";
		return $sql;
	}

	public function listAll() {
		$sql = "SELECT * FROM ".STATUS." ORDER BY statusid";
		return $sql;
	}

	public function insert() {
      		$sql = "";
		return $sql;
	}

	public function update() {
      		$sql = "";
		return $sql;
	}

	public function fill($array) {
		$this->statusid=$array['statusid'];
	}

}

?>
